package com.aduerr.v1shouyin.mvp.adpter;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import com.aduerr.v1shouyin.unioncard.BaseUnionFragment;

import java.util.List;


/**
 * @author HI
 * @email dev1024@foxmail.com
 * @time 2018/10/15 15:38
 * @change
 * @chang time
 * @class describe
 */

public class MyPagerAdapter extends FragmentPagerAdapter {

    private List<BaseUnionFragment> mfragmentList;

    public MyPagerAdapter(FragmentManager fm, List<BaseUnionFragment> fragmentList) {
        super(fm);
        this.mfragmentList = fragmentList;
    }

    @Override
    public Fragment getItem(int position) {
        return mfragmentList.get(position);
    }

    @Override
    public int getCount() {
        return mfragmentList.size();
    }
}
